openuriportal: Detect if the interface isn't there
authorMatthias Clasen <mclasen@redhat.com>
Thu, 13 Apr 2023 05:23:06 +0000 (07:23 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 13 Apr 2023 05:24:38 +0000 (07:24 +0200)
commit3da0572078dd1c738f19c35d3ce3067866001195
treebfbb3b13fb7850e16b47867eea209d51b1fd0b86
parentc649d8a4ec80a84aaa0f1154bb301b43ce55f2fa
openuriportal: Detect if the interface isn't there

Check the portal version number before trying to use
it. Most importantly, this will detect the case where
the interface isn't supported at all, since the proxy
will report a version of 0 in that case.

Fixes: #5733
gtk/gtkopenuriportal.c